package com.zxg.weixin.api.service.domain;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class WeixinPayRequest {

	
    
    private String mch_billno;
    private String nonce_str;
    private String mch_id;
    private String wxappid;
    private String send_name;
    private String re_openid;
    private Integer total_amount;
    private Integer total_num=1;
    private String wishing;
    private String client_ip;
    private String act_name;
    private String remark;
    
    public Map<String, String> getParams(){
    	Map<String, String> parMap = new HashMap<String, String>();
        parMap.put("nonce_str", ""+nonce_str);
        parMap.put("mch_billno", mch_id+new SimpleDateFormat("yyyyMMdd").format(new Date())+mch_billno);
        parMap.put("mch_id", ""+mch_id);
        parMap.put("wxappid", wxappid);
        parMap.put("send_name", send_name);
        parMap.put("re_openid", re_openid);
        parMap.put("total_amount", total_amount+"");
        parMap.put("total_num", total_num+"");
        parMap.put("wishing", wishing);
        parMap.put("client_ip", client_ip);
        parMap.put("act_name", act_name);
        parMap.put("remark", remark);
        return parMap;
    }
	public String getMch_billno() {
		return mch_billno;
	}
	public void setMch_billno(String mch_billno) {
		this.mch_billno = mch_billno;
	}
	public String getNonce_str() {
		return nonce_str;
	}
	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}
	public String getMch_id() {
		return mch_id;
	}
	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}
	public String getWxappid() {
		return wxappid;
	}
	public void setWxappid(String wxappid) {
		this.wxappid = wxappid;
	}
	public String getSend_name() {
		return send_name;
	}
	public void setSend_name(String send_name) {
		this.send_name = send_name;
	}
	public String getRe_openid() {
		return re_openid;
	}
	public void setRe_openid(String re_openid) {
		this.re_openid = re_openid;
	}
	public Integer getTotal_amount() {
		return total_amount;
	}
	public void setTotal_amount(Integer total_amount) {
		this.total_amount = total_amount;
	}
	public Integer getTotal_num() {
		return total_num;
	}
	public void setTotal_num(Integer total_num) {
		this.total_num = total_num;
	}
	public String getWishing() {
		return wishing;
	}
	public void setWishing(String wishing) {
		this.wishing = wishing;
	}
	public String getClient_ip() {
		return client_ip;
	}
	public void setClient_ip(String client_ip) {
		this.client_ip = client_ip;
	}
	public String getAct_name() {
		return act_name;
	}
	public void setAct_name(String act_name) {
		this.act_name = act_name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Override
	public String toString() {
		return "WeixinPayRequest [mch_billno=" + mch_billno + ", nonce_str="
				+ nonce_str + ", mch_id=" + mch_id + ", wxappid=" + wxappid
				+ ", send_name=" + send_name + ", re_openid=" + re_openid
				+ ", total_amount=" + total_amount + ", total_num=" + total_num
				+ ", wishing=" + wishing + ", client_ip=" + client_ip
				+ ", act_name=" + act_name + ", remark=" + remark + "]";
	}
    
    
    
    
}
